<?php get_header();?>
<!-- 页面布局开始 -->
		<div class="layui-content">
			<div class="layui-container layui-container-blog">
				<div class="layui-row main">
									<div class="layui-col-md12 layui-col-lg12">
						<div class="list-box-blog">
<?php $posts = query_posts($query_string . '&orderby=date&showposts='._read('rp-category-piece').''); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>   
							<div class="list-cards-blog layui-anim layui-anim-downbit border-r">
								<div class="post-graphic">
								<div class="item-thumbnail">
									    	<a href="<?php the_permalink() ?>">
									    	<?php if(_read('rp-page-tesetu-sw')=='tesetu1'){?>
						     <img src="<?php echo get_template_directory_uri(); ?>/images/read/dna.svg" data-src="<?php echo post_thumbnail_src(); ?>" title="<?php the_title(); ?>" class="border-r lazyload">
							<?php }else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/images/read/dna.svg" data-src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&w=250&h=180&zc=1" title="<?php the_title(); ?>" class="border-r lazyload">
										<?php }?>
												</a>
												</div>
								</div>
								<div class="item-body">
									<div class="blog-article-component">
										<div class="meta-right">
											<span class=""><a href="<?php $category = get_the_category();if($category[0]){echo ''.get_category_link($category[0]->term_id ).'';}?>"><?php foreach((get_the_category()) as $category){echo $category->cat_name;} ?></a></span>
											<span> · </span>
											<span class=""><?php the_time('Y年n月j日'); ?></span>
										</div>
									</div>
									<h2 class="item-heading" title="<?php the_title(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
									<div class="text-ellipsis"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 96,'…'); ?></div>
								</div>
							</div>
							<hr/>
 <?php endwhile; else: ?>
          <div class="qzdy_ssnrts"><h2 style=" text-align: center; margin: 0 auto; padding: 60px; ">暂无文章哦！</h2></div>
                <?php endif; ?>
					</div>
				</div>
				</div>
			</div>
			<div class="pagination" id="pagenavi">
            <p><?php lingfeng_pagenavi();?></p>
           </div>
		</div>
<!-- 页面布局结束 -->
<?php get_footer();?>